package com.xiashitech.apiservice.service.impl;

import com.xiashitech.apiservice.dao.AgentNodeMapper;
import com.xiashitech.apiservice.dao.model.AgentNode;
import com.xiashitech.apiservice.service.IAgentNodeService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor(onConstructor =@_(@Autowired))
public class AgentNodeServiceImpl implements IAgentNodeService {
    private final AgentNodeMapper agentNodeMapper;
    @Override
    public void insertAgentNode(AgentNode agentNode) {
        agentNodeMapper.insertAgentNode(agentNode);
    }

    @Override
    public List<AgentNode> selectAgentNode(AgentNode agentNode) {
        return agentNodeMapper.selectAgentNode(agentNode);
    }
}
